//
//  LoginViewModel.swift
//  hunan_ios_ldnsm
//
//  Created by I-Q-I on 2019/4/28.
//  Copyright © 2019 I-Q-I. All rights reserved.
//

import Foundation
import HandyJSON


class HomeModel  {
    
    func getSwiper(by data: [String: Any], completion: @escaping (_ result: Bool, _ msg: String, _ data: Any ) -> Void) {
        
        let t = TestLogin(type: TestLoginType.homeSwiper, params: data)
        ApiLoadingProvider.request(t, model: BannerList.self) { (msg, returnData) in
            return completion(true, "", returnData!.advertisementList!)
            
        }
        
    }
}

